/* 全局样式优化 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* 基础样式重置 */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  color: #1e293b;
  line-height: 1.6;
}

/* Element Plus 组件样式优化 */
.el-card {
  border-radius: 16px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06) !important;
  border: 1px solid #e2e8f0 !important;
  transition: all 0.3s ease !important;
}

.el-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !important;
  transform: translateY(-2px) !important;
}

.el-button {
  border-radius: 12px !important;
  font-weight: 600 !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.el-button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
}

.el-button--primary {
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%) !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
}

.el-button--primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%) !important;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4) !important;
}

.el-input__wrapper {
  border-radius: 12px !important;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%) !important;
  box-shadow: 0 0 0 1px #e2e8f0 !important;
  transition: all 0.3s ease !important;
}

.el-input__wrapper:hover {
  box-shadow: 0 0 0 2px #cbd5e1 !important;
  background: #ffffff !important;
  transform: translateY(-1px) !important;
}

.el-input__wrapper.is-focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
  background: #ffffff !important;
  transform: translateY(-2px) !important;
}

.el-select .el-input__wrapper {
  border-radius: 12px !important;
}

.el-table {
  border-radius: 12px !important;
  overflow: hidden !important;
}

/* 默认浅色主题表格样式 */
.el-table th {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
  color: #1e293b !important;
  font-weight: 600 !important;
  border-bottom: 2px solid #e2e8f0 !important;
}

.el-table td {
  border-bottom: 1px solid #f1f5f9 !important;
  transition: all 0.3s ease !important;
}

.el-table tr:hover>td {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(99, 102, 241, 0.05) 100%) !important;
}



.el-tag {
  border-radius: 8px !important;
  font-weight: 600 !important;
  padding: 4px 12px !important;
}

.el-pagination {
  --el-pagination-bg-color: transparent !important;
  --el-pagination-text-color: #64748b !important;
  --el-pagination-border-radius: 8px !important;
}

.el-pagination .el-pager li {
  border-radius: 8px !important;
  transition: all 0.3s ease !important;
}

.el-pagination .el-pager li.is-active {
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
}



.el-dropdown-menu {
  border-radius: 16px !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
  border: none !important;
  backdrop-filter: blur(20px) !important;
}

.el-dropdown-menu__item {
  border-radius: 8px !important;
  margin: 2px 8px !important;
  transition: all 0.3s ease !important;
}

.el-dropdown-menu__item:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%) !important;
  color: #ffffff !important;
  transform: translateX(4px) !important;
}

.el-badge__content {
  border-radius: 10px !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3) !important;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #cbd5e1 0%, #94a3b8 100%);
  border-radius: 4px;
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #94a3b8 0%, #64748b 100%);
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

/* 工具类 */
.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

.pulse {
  animation: pulse 2s infinite;
}

/* 响应式工具类 */
@media (max-width: 768px) {
  .el-card {
    border-radius: 12px !important;
  }

  .el-button {
    border-radius: 8px !important;
  }

  .el-input__wrapper {
    border-radius: 8px !important;
  }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
  body {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #f1f5f9;
  }

  .el-card {
    background: #1e293b !important;
    border-color: #334155 !important;
  }

  .el-table th {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
    color: #f1f5f9 !important;
    border-bottom-color: #475569 !important;
  }

  .el-table td {
    border-bottom-color: #334155 !important;
  }
}